package org.liushengpei.com.menu;

/**
 * 返回状态码枚举
 */
public enum CodeMenu {

    /**
     * 认证失败
     */
    AUTHFAIL("认证失败", 401),

    /**
     * 操作成功
     */
    SUCCESS("操作成功", 200),

    /**
     * 操作失败
     */
    FAIL("操作失败", 400);

    private String msg;

    private long code;

    CodeMenu(String msg, long code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }
}
